package controller

import (
	"demo/controller/request"
	"demo/vo"
	"fmt"

	"github.com/gin-gonic/gin"
)

func Login(ctx *gin.Context) {
	var loginReq request.LoginRequest
	error := ctx.Bind(&loginReq)
	if error != nil {
		ctx.JSON(400, vo.Error(error.Error()))
		return
	}
	fmt.Println(loginReq)
	ctx.JSON(200, vo.OK("登录成功！"))
}
